﻿<UserControl x:Class="DiscoveryLogic.UI.Layouts.Controls.TradeHistoryNewsItemMarker"
    xmlns="http://schemas.microsoft.com/client/2007" 
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
    Width="240" Height="37">

    <Canvas x:Name="LayoutRoot" 
            MouseEnter="NewsItem_MouseEnter"
            MouseLeave="NewsItem_MouseLeave">
        <Canvas.RenderTransform>
            <ScaleTransform x:Name="IconScale" ScaleX="1" ScaleY="1"/>
        </Canvas.RenderTransform>

      

        <!-- Worldwide news category -->
        <Canvas x:Name="WorldwideNews" Width="37.495" Height="37" RenderTransformOrigin="0.554,0.506">
            <Canvas.RenderTransform>
                <TransformGroup>
                    <ScaleTransform ScaleX="0.7" ScaleY="0.7"/>
                    <SkewTransform AngleX="0" AngleY="0"/>
                    <RotateTransform Angle="0"/>
                    <TranslateTransform X="1.012" Y="0.111"/>
                </TransformGroup>
            </Canvas.RenderTransform>
            <Rectangle RadiusX="3" RadiusY="3" Width="36" Height="36" Canvas.Left="0.5" Canvas.Top="0.5">

                <Rectangle.Fill>
                    <RadialGradientBrush MappingMode="RelativeToBoundingBox" Center="1.771,1.436" GradientOrigin="1.771,1.436" RadiusX="0.78" RadiusY="0.78">
                        <RadialGradientBrush.RelativeTransform>
                            <TransformGroup>
                                <ScaleTransform CenterX="1.771" CenterY="1.436" ScaleX="2.957" ScaleY="1.48"/>
                                <SkewTransform AngleX="0" AngleY="0" CenterX="1.771" CenterY="1.436"/>
                                <RotateTransform Angle="0" CenterX="1.771" CenterY="1.436"/>
                                <TranslateTransform X="-0.8" Y="-0.526"/>
                            </TransformGroup>
                        </RadialGradientBrush.RelativeTransform>
                        <GradientStop Color="#FFCAFFF6" Offset="0.022"/>
                        <GradientStop Color="#FF317E72" Offset="0.219"/>
                        <GradientStop Color="#FF00332C" Offset="0.442"/>
                        <GradientStop Color="#FF12574C" Offset="0.683"/>
                        <GradientStop Color="#FFDCFFFA" Offset="0.996"/>
                        <GradientStop Color="#FF5FA197" Offset="0.862"/>
                    </RadialGradientBrush>
                </Rectangle.Fill>
            </Rectangle>

            <Rectangle RadiusX="5" RadiusY="5" Width="31.001" Height="16" Canvas.Left="2.667" Canvas.Top="0.501">

                <Rectangle.Fill>
                    <LinearGradientBrush EndPoint="0.554,0.209" StartPoint="0.607,1.392">
                        <GradientStop Color="#FFFFFFFF" Offset="0.004"/>
                        <GradientStop Color="#00FFFFFF" Offset="1"/>
                    </LinearGradientBrush>
                </Rectangle.Fill>
            </Rectangle>
            <Rectangle RadiusX="5" RadiusY="5" Width="31.001" Height="6.333" RenderTransformOrigin="0.5,0.5" Canvas.Left="3.167" Canvas.Top="29.836">
                <Rectangle.Fill>
                    <LinearGradientBrush EndPoint="0.554,0.209" StartPoint="0.607,1.392">
                        <GradientStop Color="#81FFFFFF" Offset="0"/>
                        <GradientStop Color="#00FFFFFF" Offset="1"/>
                    </LinearGradientBrush>
                </Rectangle.Fill>
                <Rectangle.RenderTransform>
                    <TransformGroup>
                        <ScaleTransform ScaleX="1" ScaleY="1"/>
                        <SkewTransform AngleX="0" AngleY="0"/>
                        <RotateTransform Angle="180"/>
                        <TranslateTransform X="0" Y="0"/>
                    </TransformGroup>
                </Rectangle.RenderTransform>
            </Rectangle>
            <Rectangle RadiusX="3" RadiusY="3" Width="37" Height="37" Stroke="#FF042F29" StrokeThickness="1.5"/>
            <Rectangle x:Name="WorldwideNewsReflection" RadiusX="3" RadiusY="3" Width="36" Height="36" Canvas.Top="40.5" Canvas.Left="0.5" Stroke="#FF00221D" Fill="#FF015146">
                <Rectangle.OpacityMask>
                    <LinearGradientBrush EndPoint="0.523,0.536" StartPoint="0.523,-1.463">
                        <GradientStop Color="#FF000000" Offset="0"/>
                        <GradientStop Color="#00FFFFFF" Offset="1"/>
                    </LinearGradientBrush>
                </Rectangle.OpacityMask>
            </Rectangle>
        </Canvas>

        <!-- Company news category -->
        <Canvas x:Name="CompanyNews" Width="37.495" Height="37" RenderTransformOrigin="0.554,0.506" Opacity="0">
            <Canvas.RenderTransform>
                <TransformGroup>
                    <ScaleTransform ScaleX="0.7" ScaleY="0.7"/>
                    <SkewTransform AngleX="0" AngleY="0"/>
                    <RotateTransform Angle="0"/>
                    <TranslateTransform X="1.012" Y="0.111"/>
                </TransformGroup>
            </Canvas.RenderTransform>
            <Rectangle RadiusX="3" RadiusY="3" Width="36" Height="36" Canvas.Left="0.5" Canvas.Top="0.5">

                <Rectangle.Fill>
                    <RadialGradientBrush MappingMode="RelativeToBoundingBox" Center="1.771,1.436" GradientOrigin="1.771,1.436" RadiusX="0.78" RadiusY="0.78">
                        <RadialGradientBrush.RelativeTransform>
                            <TransformGroup>
                                <ScaleTransform CenterX="1.771" CenterY="1.436" ScaleX="2.957" ScaleY="1.48"/>
                                <SkewTransform AngleX="0" AngleY="0" CenterX="1.771" CenterY="1.436"/>
                                <RotateTransform Angle="0" CenterX="1.771" CenterY="1.436"/>
                                <TranslateTransform X="-0.8" Y="-0.526"/>
                            </TransformGroup>
                        </RadialGradientBrush.RelativeTransform>
                        <GradientStop Color="#FFC55DC5" Offset="0"/>
                        <GradientStop Color="#FF7E497E" Offset="0.183"/>
                        <GradientStop Color="#FF391139" Offset="0.424"/>
                        <GradientStop Color="#FF5D1E5D" Offset="0.688"/>
                        <GradientStop Color="#FFFFA9FF" Offset="0.996"/>
                        <GradientStop Color="#FFA167A1" Offset="0.848"/>
                    </RadialGradientBrush>
                </Rectangle.Fill>
            </Rectangle>

            <Rectangle RadiusX="5" RadiusY="5" Width="31.001" Height="16" Canvas.Left="2.667" Canvas.Top="0.501">

                <Rectangle.Fill>
                    <LinearGradientBrush EndPoint="0.554,0.209" StartPoint="0.607,1.392">
                        <GradientStop Color="#FFFFFFFF" Offset="0.004"/>
                        <GradientStop Color="#00FFFFFF" Offset="1"/>
                    </LinearGradientBrush>
                </Rectangle.Fill>
            </Rectangle>
            <Rectangle RadiusX="5" RadiusY="5" Width="31.001" Height="6.333" RenderTransformOrigin="0.5,0.5" Canvas.Left="3.167" Canvas.Top="29.836">
                <Rectangle.Fill>
                    <LinearGradientBrush EndPoint="0.554,0.209" StartPoint="0.607,1.392">
                        <GradientStop Color="#81FFFFFF" Offset="0"/>
                        <GradientStop Color="#00FFFFFF" Offset="1"/>
                    </LinearGradientBrush>
                </Rectangle.Fill>
                <Rectangle.RenderTransform>
                    <TransformGroup>
                        <ScaleTransform ScaleX="1" ScaleY="1"/>
                        <SkewTransform AngleX="0" AngleY="0"/>
                        <RotateTransform Angle="180"/>
                        <TranslateTransform X="0" Y="0"/>
                    </TransformGroup>
                </Rectangle.RenderTransform>
            </Rectangle>
            <Rectangle RadiusX="3" RadiusY="3" Width="37" Height="37" Stroke="#FF2C042C" StrokeThickness="1.5"/>
            <Rectangle x:Name="CompanyNewsReflection"  RadiusX="3" RadiusY="3" Width="36" Height="36" Canvas.Top="40.5" Canvas.Left="0.5" Stroke="#FF2C042C" Fill="#FF762976">
                <Rectangle.OpacityMask>
                    <LinearGradientBrush EndPoint="0.523,0.536" StartPoint="0.523,-1.463">
                        <GradientStop Color="#FF000000" Offset="0"/>
                        <GradientStop Color="#00FFFFFF" Offset="1"/>
                    </LinearGradientBrush>
                </Rectangle.OpacityMask>
            </Rectangle>
        </Canvas>
        
        <!-- Industry news category -->
        <Canvas x:Name="IndustryNews" Width="37.495" Height="37" RenderTransformOrigin="0.554,0.506" Opacity="0">
            <Canvas.RenderTransform>
                <TransformGroup>
                    <ScaleTransform ScaleX="0.7" ScaleY="0.7"/>
                    <SkewTransform AngleX="0" AngleY="0"/>
                    <RotateTransform Angle="0"/>
                    <TranslateTransform X="1.012" Y="0.111"/>
                </TransformGroup>
            </Canvas.RenderTransform>
            <Rectangle RadiusX="3" RadiusY="3" Width="36" Height="36" Canvas.Left="0.5" Canvas.Top="0.5">

                <Rectangle.Fill>
                    <RadialGradientBrush MappingMode="RelativeToBoundingBox" Center="1.771,1.436" GradientOrigin="1.771,1.436" RadiusX="0.78" RadiusY="0.78">
                        <RadialGradientBrush.RelativeTransform>
                            <TransformGroup>
                                <ScaleTransform CenterX="1.771" CenterY="1.436" ScaleX="3.131" ScaleY="1.093"/>
                                <SkewTransform AngleX="0" AngleY="0" CenterX="1.771" CenterY="1.436"/>
                                <RotateTransform Angle="0" CenterX="1.771" CenterY="1.436"/>
                                <TranslateTransform X="-0.564" Y="-0.675"/>
                            </TransformGroup>
                        </RadialGradientBrush.RelativeTransform>
                        <GradientStop Color="#FFFBC672" Offset="0.018"/>
                        <GradientStop Color="#FFFFBC53" Offset="0.223"/>
                        <GradientStop Color="#FFCA7C00" Offset="0.46"/>
                        <GradientStop Color="#FFFFB135" Offset="0.751825"/>
                        <GradientStop Color="#FFFDDDAA" Offset="1"/>
                        <GradientStop Color="#FFFFBE58" Offset="0.781"/>
                    </RadialGradientBrush>
                </Rectangle.Fill>
            </Rectangle>

            <Rectangle RadiusX="5" RadiusY="5" Width="31.001" Height="16" Canvas.Left="2.667" Canvas.Top="0.501">

                <Rectangle.Fill>
                    <LinearGradientBrush EndPoint="0.554,0.209" StartPoint="0.607,1.392">
                        <GradientStop Color="#FFFFFFFF" Offset="0"/>
                        <GradientStop Color="#00FFFFFF" Offset="1"/>
                    </LinearGradientBrush>
                </Rectangle.Fill>
            </Rectangle>
            <Rectangle RadiusX="5" RadiusY="5" Width="31.001" Height="6.333" RenderTransformOrigin="0.5,0.5" Canvas.Left="3.167" Canvas.Top="29.836">
                <Rectangle.Fill>
                    <LinearGradientBrush EndPoint="0.554,0.209" StartPoint="0.607,1.392">
                        <GradientStop Color="#9DFFFFFF" Offset="0"/>
                        <GradientStop Color="#00FFFFFF" Offset="1"/>
                    </LinearGradientBrush>
                </Rectangle.Fill>
                <Rectangle.RenderTransform>
                    <TransformGroup>
                        <ScaleTransform ScaleX="1" ScaleY="1"/>
                        <SkewTransform AngleX="0" AngleY="0"/>
                        <RotateTransform Angle="180"/>
                        <TranslateTransform X="0" Y="0"/>
                    </TransformGroup>
                </Rectangle.RenderTransform>
            </Rectangle>
            <Rectangle RadiusX="3" RadiusY="3" Width="37" Height="37" Stroke="#FF804F00" StrokeThickness="1.5"/>
            <Rectangle x:Name="IndustryNewsReflection" RadiusX="3" RadiusY="3" Width="36" Height="36" Canvas.Top="40.5" Canvas.Left="0.5" Stroke="#FF905900" Fill="#FFFFA514">
                <Rectangle.OpacityMask>
                    <LinearGradientBrush EndPoint="0.523,0.536" StartPoint="0.523,-1.463">
                        <GradientStop Color="#FF000000" Offset="0"/>
                        <GradientStop Color="#00FFFFFF" Offset="1"/>
                    </LinearGradientBrush>
                </Rectangle.OpacityMask>
            </Rectangle>
        </Canvas>
        
        <!-- Trivial news category -->
        <Canvas x:Name="TrivialNews" Width="37.495" Height="37" RenderTransformOrigin="0.554,0.506" Opacity="0">
            <Canvas.RenderTransform>
                <TransformGroup>
                    <ScaleTransform ScaleX="0.7" ScaleY="0.7"/>
                    <SkewTransform AngleX="0" AngleY="0"/>
                    <RotateTransform Angle="0"/>
                    <TranslateTransform X="1.012" Y="0.111"/>
                </TransformGroup>
            </Canvas.RenderTransform>

            <Rectangle RadiusX="3" RadiusY="3" Width="36" Height="36" Canvas.Left="0.5" Canvas.Top="0.5">
                <Rectangle.Fill>
                    <RadialGradientBrush MappingMode="RelativeToBoundingBox" Center="1.771,1.436" GradientOrigin="1.771,1.436" RadiusX="0.78" RadiusY="0.78">
                        <RadialGradientBrush.RelativeTransform>
                            <TransformGroup>
                                <ScaleTransform CenterX="1.771" CenterY="1.436" ScaleX="2.957" ScaleY="1.48"/>
                                <SkewTransform AngleX="0" AngleY="0" CenterX="1.771" CenterY="1.436"/>
                                <RotateTransform Angle="0" CenterX="1.771" CenterY="1.436"/>
                                <TranslateTransform X="-0.701" Y="-0.549"/>
                            </TransformGroup>
                        </RadialGradientBrush.RelativeTransform>
                        <GradientStop Color="#FFFFD3C2" Offset="0"/>
                        <GradientStop Color="#FFFF895E" Offset="0.232"/>
                        <GradientStop Color="#FFAB2E00" Offset="0.446"/>
                        <GradientStop Color="#FFFF5F25" Offset="0.772"/>
                        <GradientStop Color="#FFFF8E65" Offset="1"/>
                        <GradientStop Color="#FFFF7644" Offset="0.853"/>
                    </RadialGradientBrush>
                </Rectangle.Fill>
            </Rectangle>

            <Rectangle RadiusX="5" RadiusY="5" Width="31.001" Height="16" Canvas.Left="2.667" Canvas.Top="0.501">

                <Rectangle.Fill>
                    <LinearGradientBrush EndPoint="0.554,0.209" StartPoint="0.607,1.392">
                        <GradientStop Color="#FFFFFFFF" Offset="0.004"/>
                        <GradientStop Color="#00FFFFFF" Offset="1"/>
                    </LinearGradientBrush>
                </Rectangle.Fill>
            </Rectangle>
            <Rectangle RadiusX="5" RadiusY="5" Width="31.001" Height="6.333" RenderTransformOrigin="0.5,0.5" Canvas.Left="3.167" Canvas.Top="29.836">
                <Rectangle.Fill>
                    <LinearGradientBrush EndPoint="0.554,0.209" StartPoint="0.607,1.392">
                        <GradientStop Color="#81FFFFFF" Offset="0"/>
                        <GradientStop Color="#00FFFFFF" Offset="1"/>
                    </LinearGradientBrush>
                </Rectangle.Fill>
                <Rectangle.RenderTransform>
                    <TransformGroup>
                        <ScaleTransform ScaleX="1" ScaleY="1"/>
                        <SkewTransform AngleX="0" AngleY="0"/>
                        <RotateTransform Angle="180"/>
                        <TranslateTransform X="0" Y="0"/>
                    </TransformGroup>
                </Rectangle.RenderTransform>
            </Rectangle>
            <Rectangle RadiusX="3" RadiusY="3" Width="37" Height="37" Stroke="#FF6A1C00" StrokeThickness="1.5"/>
            <Rectangle x:Name="TrivialNewsReflection" RadiusX="3" RadiusY="3" Width="36" Height="36" Canvas.Top="40.5" Canvas.Left="0.5" Stroke="#FF6A1C00" Fill="#FFFF4400">
                <Rectangle.OpacityMask>
                    <LinearGradientBrush EndPoint="0.523,0.536" StartPoint="0.523,-1.463">
                        <GradientStop Color="#FF000000" Offset="0"/>
                        <GradientStop Color="#00FFFFFF" Offset="1"/>
                    </LinearGradientBrush>
                </Rectangle.OpacityMask>
            </Rectangle>
        </Canvas>
        
        <TextBlock x:Name="SymbolLabel" Width="18" Height="25" Canvas.Left="12.506" Canvas.Top="4.962" FontFamily="Trebuchet MS" FontSize="24" FontWeight="Bold" Foreground="#FFFFFFFF" TextWrapping="Wrap" Text="A"/>
        
    </Canvas>
    
</UserControl>
